package com.xyoto.community.entity;

import com.xyoto.community.utils.handler.CreateTime;
import com.xyoto.community.utils.handler.ModifiedTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author lin
 * @Date 2021/10/1 21:15
 */
@Data
@ApiModel("实体基类")
public class Base {

    @ApiModelProperty("自增id")
    private Integer id;

    @ApiModelProperty("创建时间")
    @CreateTime
    private Date createTime;

    @ApiModelProperty("修改时间")
    @ModifiedTime
    private Date modifiedTime;
}
